#include"buff_queue.h"
#include<stdio.h>
#include<stdlib.h>

int main()
{
	struct buff_queue *bq;
	bq=(struct buff_queue*)malloc(sizeof(struct buff_queue));
	
	struct buff_queue_node * q;
	struct buff_queue_node * r;

	struct buff_queue_node * p;

	q=(struct buff_queue_node *)malloc(sizeof(struct buff_queue_node));
	r=(struct buff_queue_node *)malloc(sizeof(struct buff_queue_node));

	q->arrive_time=1;
	r->arrive_time=2;
	
	buff_queue_add(bq,q);
	buff_queue_add(bq,r);

	p=buff_queue_del(bq);

	printf("%d\n",p->arrive_time);
	
	p=buff_queue_del(bq);

        printf("%d\n",p->arrive_time);

	return 0;
	
}
